package oshi.hardware;

import java.util.Objects;

/**
 * @author Teemo
 */
public class SensorFanInfo {
    private String name;
    private float value;
    private float max;
    private float min;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getValue() {
        return value;
    }

    public void setValue(float value) {
        this.value = value;
    }

    public float getMax() {
        return max;
    }

    public void setMax(float max) {
        this.max = max;
    }

    public float getMin() {
        return min;
    }

    public void setMin(float min) {
        this.min = min;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SensorFanInfo fan = (SensorFanInfo) o;
        return Objects.equals(name, fan.name) && Objects.equals(value, fan.value) && Objects.equals(max, fan.max) && Objects.equals(min, fan.min);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, value, max, min);
    }

    @Override
    public String toString() {
        return "MotherboardFan{" +
            "name='" + name + '\'' +
            ", value='" + value + '\'' +
            ", max='" + max + '\'' +
            ", min='" + min + '\'' +
            '}';
    }
}
